package com.bh.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author13007
 * @date2022/10/25
 * @apiNote
 */
@Data
public class Role   {

    private Long id;

    private String name;

    private String code;

    private Date created;

    private Date updated;

    private Long statu;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Long getStatu() {
        return statu;
    }

    public void setStatu(Long statu) {
        this.statu = statu;
    }

    public Role() {
    }

    public Role(Long id, String name, String code, Date created, Date updated, Long statu) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.created = created;
        this.updated = updated;
        this.statu = statu;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", created=" + created +
                ", updated=" + updated +
                ", statu=" + statu +
                '}';
    }
}
